package com.os.meituan.common;





import cn.hutool.core.util.StrUtil;

import java.util.*;

/**
 * Created by Administrator on 2017/5/26.
 */
public class StringClass {
    public static boolean isNullOrEmpty(String str) {
        if (str == null) {
            return true;
        }
        if (Objects.equals(str, "")) {
            return true;
        }
        return false;
    }

    public static List<String> toStringList(String str) {
        if (isNullOrEmpty(str)) {
            return null;
        }
        String[] arrStr = str.split(",");
        List<String> list = new LinkedList<>();
        for (String st : arrStr) {
            list.add(String.valueOf(st));
        }
        return list;
    }
    public static boolean isNotBlank(String format) {
        return StrUtil.isNotBlank(format);
    }

    public static boolean hasValue(String str) {
        return !isNullOrEmpty(str);
    }

    public static String join(Iterable<?> iterable, String separator) {
        return StrUtil.join(separator, iterable);
    }
    public static boolean isBlank(String dateStr) {
        return StrUtil.isBlank(dateStr);
    }
}
